
#include "Computer.h"

void Computer::set_cpu(std::string cpu)
{
  this->cpu_ = std::move(cpu);
}

void Computer::set_mem(std::string mem)
{
  this->mem_ = std::move(mem);
}

void Computer::set_keyboard(std::string keyboard)
{
  this->keyboard_ = std::move(keyboard);
}

void Computer::set_monitor(std::string monitor)
{
  this->monitor_ = std::move(monitor);
}

std::string Computer::get_cpu() const
{
  return cpu_;
}

std::string Computer::get_mem() const
{
  return mem_;
}

std::string Computer::get_keyboard() const
{
  return keyboard_;
}

std::string Computer::get_monitor() const
{
  return monitor_;
}

std::string Computer::Desc() const
{
  return "cpu         " + cpu_ + "\n" +
      "mem         " + mem_ + "\n" +
      "keyboard    " + keyboard_ + "\n" +
      "monitor     " + monitor_;
}
